package com.hyperfix.common.config;

import com.baomidou.mybatisplus.extension.plugins.handler.TableNameHandler;

/**
 * @author JiangChunYu
 * 2024/4/14
 */
public class RecordTableNameHandler implements TableNameHandler {
    @Override
    public String dynamicTableName(String sql, String tableName) {
        Integer pipelineId = RequestDataHelper.getRequestData();
        return tableName + "_" + pipelineId;
    }
}
